import service from "@/utils/http";

const user = {
  login(params) {
    return service.post("/user/login", params);
  },
  logout(id, params) {
    return service.get(`/topic/${id}`, {
      params,
    });
  },
};

export default user;
